package com.ttj.domain.oracle.gen;

import java.io.Serializable;
import java.util.Date;

public class SuperWebValidationCode implements Serializable {
    /**
     * 自增ID
     */
    private Integer id;

    /**
     * 用户输入的手机号
     */
    private String phonenum;

    /**
     * 验证码
     */
    private String code;

    /**
     * 类型：1注册 2忘记密码 3修改密码
     */
    private Integer type;

    /**
     * 状态：0未使用 1已使用
     */
    private Integer status;

    /**
     * 过期时间
     */
    private Date exoireTime;

    private static final long serialVersionUID = 1L;

    /**
     * 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 用户输入的手机号
     */
    public String getPhonenum() {
        return phonenum;
    }

    /**
     * 用户输入的手机号
     */
    public void setPhonenum(String phonenum) {
        this.phonenum = phonenum;
    }

    /**
     * 验证码
     */
    public String getCode() {
        return code;
    }

    /**
     * 验证码
     */
    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 类型：1注册 2忘记密码 3修改密码
     */
    public Integer getType() {
        return type;
    }

    /**
     * 类型：1注册 2忘记密码 3修改密码
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 状态：0未使用 1已使用
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 状态：0未使用 1已使用
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 过期时间
     */
    public Date getExoireTime() {
        return exoireTime;
    }

    /**
     * 过期时间
     */
    public void setExoireTime(Date exoireTime) {
        this.exoireTime = exoireTime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", phonenum=").append(phonenum);
        sb.append(", code=").append(code);
        sb.append(", type=").append(type);
        sb.append(", status=").append(status);
        sb.append(", exoireTime=").append(exoireTime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperWebValidationCode other = (SuperWebValidationCode) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getPhonenum() == null ? other.getPhonenum() == null : this.getPhonenum().equals(other.getPhonenum()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getExoireTime() == null ? other.getExoireTime() == null : this.getExoireTime().equals(other.getExoireTime()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getPhonenum() == null) ? 0 : getPhonenum().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getExoireTime() == null) ? 0 : getExoireTime().hashCode());
        return result;
    }
}